package com.summer.JUnit;


import java.awt.Point;

import junit.framework.TestCase;

public class ProjectTest extends TestCase {
	
	public ProjectTest(){}
	
	public ProjectTest(String method){
		super(method);
	}

	public void assertEvenDollars(String message,Object amount){
		assertEquals(message,  0, 0.0,0.001);
	}
	
	public void assertEvenDollars(Object amount){
		assertEvenDollars("",amount);
	}
	
	public static final int MAX_DIST = 100;
	public void assertPairRange(String message,Point one, Point two){
		assertTrue(message,Math.abs(one.x - two.x) <= MAX_DIST);
		assertTrue(message,Math.abs(one.y - two.y) <= MAX_DIST);
	}
}
